<?php $this->load->view('friend/header'); ?>
<div id="wrapper" class="clearfix">
	<div id="main" class="clearfix">
		<div id="content">
			
			<div id='friend'>
				<img src="<?php echo $user_setting->photo_path ;?>" width="120" height="120" class="avatar" style=" 50% 50% no-repeat" alt="<?php echo $this->session->userdata('user_name');?>的头像">
				<label><?php echo $friend_name ?></label>
				<label>所在城市：<?php echo $city->city_name;?></label>
			</div>
			<div id="add_block">
			<?php if($is_friend=='no'){?>
				<?php $this->load->view('friend/add_friend_note'); ?>
				<input type="submit" id="add_friend" value="添加好友" onclick="openfriendnote()">
			<?php } ?>
			</div>
		</div>
	</div>
</div>
<?php $this->load->view('friend/footer'); ?>

<script type="text/javascript">
function openfriendnote(){
  	$('#basic-modal-content').modal();
}

</script>